package com.weipu.common.facade.model;

import org.json.JSONObject;

public class CreateOrderStatus {
    private String OrderNumber;
    
    private String PaymentStatus;

	public String getOrderNumber() {
		return OrderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		OrderNumber = orderNumber;
	}

	public String getPaymentStatus() {
		return PaymentStatus;
	}

	public void setPaymentStatus(String paymentStatus) {
		PaymentStatus = paymentStatus;
	}
    
	
	public static CreateOrderStatus jsonCreateOrderStatusModel(JSONObject data) {
		CreateOrderStatus createOrderStatus = null;
		if (data != null) {
			createOrderStatus = new CreateOrderStatus();
			String orderNumber=data.optString("OrderNumber");
			String status=data.optString("PaymentStatus");
			createOrderStatus.setOrderNumber(orderNumber);
			createOrderStatus.setPaymentStatus(status);
		}
		return createOrderStatus;
	}
    
}
